package com.bsoft.gol.hbs.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import hcn.base.BaseTransferRelation;

/**
 * Created by pangxl on 2019/12/19.
 */
public abstract class BaseTransferRelationDAO extends HibernateSupportDelegateDAO<BaseTransferRelation> {
    public BaseTransferRelationDAO() {
        this.setKeyField("relationId");
    }
    @DAOMethod(sql = "update BaseTransferRelation set transferType=:transferType where relationId=:relationId ")
    public abstract void updateBaseTransferRelatioById(@DAOParam("transferType") String transferType, @DAOParam("relationId") int relationId);

    @DAOMethod(sql = " from BaseTransferRelation where platformId=:platformId and orgId=:orgId ")
    public abstract BaseTransferRelation getBaseTransferRelation(@DAOParam("platformId") int platformId, @DAOParam("orgId") String orgId);

}
